package com.bjwl.service.impl;

import com.bjwl.dao.BranchStoreCardMapper;
import com.bjwl.pojo.Card;
import com.bjwl.pojo.Orders;
import com.bjwl.service.BranchStoreCardService;
import com.bjwl.service.BranchStoreService;
import com.bjwl.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: czc
 * @Date:Create：in 2020/5/19 14:01
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Service
public class BranchStoreCardServiceImpl implements BranchStoreCardService {

    @Autowired
    private BranchStoreCardMapper branchStoreCardMapper;

    @Override
    public PageBean<Card> findWorkByBstoreid(Integer pageNum, Integer bsid, Integer cardtype, Integer state) {
        PageBean<Card> pageBean = new PageBean<Card>(pageNum,10,branchStoreCardMapper.bsCardPaging(bsid,cardtype,state));
        pageBean.setData(branchStoreCardMapper.findWorkByBstoreid(pageBean,bsid,cardtype,state));
        return pageBean;
    }
}
